package receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.example.a514.BroadOrderActivity;

public class OrderedBReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent !=null && intent.getAction().equals(BroadOrderActivity.ORDERb)){
            Toast.makeText(context,"B收到广播",Toast.LENGTH_LONG).show();
        }
    }
}
